
def get_keywords(input_text):
    list_a = input_text.split("《")
    list_r = []
    for v in list_a:
        list_c = v.split("》")
        list_r.append(list_c[0])
    del list_r[0]
    print(list_r)
    return list_r


def replace_keywords(keys, text):
    # 将关键字%a%替换成占位符{}
    placeholder_sentence = text.replace("%a%", "{}")
    print("placeholder_sentence--->", placeholder_sentence)
    # 使用循环遍历列表a，将占位符替换成列表中的每个元素
    result_sentence = placeholder_sentence.format(*keys)
    print("result_sentence-->", result_sentence)
    return result_sentence


if __name__ == '__main__':
    result = [];
    if len(result) > 0:
        print("1")
    else:
        print("2")
